<?php
/**
 * The Database Interface
 *
 * user, perms, and thread are the only three php progs that need access
 **/

function openDbConn() {
  // XXX make this dependent on dbtype
  $db_name = 'sqlite:../'.$GLOBALS['__DBNAME'];
  $db_user = null;
  $db_pass = null;
  $db_options = array();
  //$db_options = array( PDO::ATTR_PERSISTENT => true );

  $db = new PDO($db_name, $db_user, $db_pass, $db_options);
  $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
  return $db;
}


?>
